/*
package com.yxm.springbootsecurity.Serializable;

import com.yxm.springbootsecurity.entity.UserEntity;

import java.io.File;
import java.io.FileOutputStream;
import java.io.ObjectOutputStream;

public class Serializa {
    private static void SerializePerson() throws Exception {
        UserEntity user = new UserEntity();
        user.setName("pengyangyang");
        person.setAge(13);
        person.setSex("男");
        //ObjectOutputStream 对象输出流，将Person对象存储到E盘的Person.txt文件中，完成对Person对象的序列化操作
        ObjectOutputStream oo = new ObjectOutputStream(new FileOutputStream(new File("../Person.txt")));
        oo.writeObject(person);
        System.out.println("Person对象序列化成功！");
        oo.close();
    }
}
*/
